package com.qishao.controller;


import com.qishao.model.EduCourse;
import com.qishao.model.EduCourseDescription;
import com.qishao.service.EduCourseDescriptionService;
import com.qishao.service.EduCourseService;
import com.qishao.service_base.reponse.Response;
import com.qishao.vo.EduCourseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 课程表 前端控制器
 * </p>
 *
 * @author xushaoqi
 * @since 2022-01-13
 */
@Api("课程信息管理")
@RestController
@RequestMapping("/eduService/edu-course")
@CrossOrigin
public class EduCourseController {

    @Autowired
    private EduCourseService courseService;

    @PostMapping("/save")
    @ApiOperation("新增课程信息接口")
    public Response save(@RequestBody EduCourseVo course){
        EduCourse eduCourse = courseService.saveCourseInfo(course);
        return Response.ok(eduCourse);
    }
    


}

